<?php

class Backend_LogoutController extends Zend_Controller_Action {
    private $sessionLogin;
    /**
     * Constructor
     */
    public function init() {
//        $this->_helper->layout->setLayout('login');
        $this->sessionLogin = new Zend_Session_Namespace('Admin');
    }

    /**
     * Main Back End
     */
    public function indexAction() {
        // Set title layout
        $this->view->headTitle('Logout | Backend');

        if(!empty($this->sessionLogin->admininfo)) {
            $this->sessionLogin->admininfo = NULL;
        }

        $this->_redirect('backend');
        
    }


}

